package homework2;

public class test {
    public static void main(String[] args) {
        cat cat = new cat();
        cat.setColor("白色");
        cat.setLeg(4);
        cat.eat();
        cat.catchMouse();
        dog dog = new dog();
        dog.setColor("黑色");
        dog.setLeg(4);
        dog.eat();
        dog.lookHome();
        }
    }

